package com.ljf.framework.job;

/**
 * 抽象任务处理器类，提供了任务执行、初始化和销毁的模板方法。
 * 子类需要实现 execute 方法以定义具体的任务逻辑。
 */
public abstract class LjfJobHandler {


	/**
	 * execute handler, invoked when executor receives a scheduling request
	 *
	 * @throws Exception
	 */
	public abstract void execute() throws Exception;


	/**
	 * init handler, invoked when JobThread init
	 */
	public void init() throws Exception {
		// do something
	}


	/**
	 * destroy handler, invoked when JobThread destroy
	 */
	public void destroy() throws Exception {
		// do something
	}


}
